<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/static/bs/css/bootstrap.css">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <style>
        .container {
            margin-top: 100px;
        }
        .btn {
            margin-top: 10px;
        }
        .kl {
            margin: 10px;
        }
    </style>
</head>
<body>
<h1 style="text-align:center;margin-top:100px;">查看数据</h1>
<div class="container">
    <div style="width: fit-content;">
        <div class="col-md-offset12 col-md-offset-0">
            <form action="" method="get">
                <input type="text" class="form-control" name="tablename" placeholder="Search for..."
                       value="{{ tablename }}">
                <p><label>查询状态:&nbsp;&nbsp;<span style="color: red">{{ status }}</span></label></p>
                <label>当前数据库表名称:&nbsp;&nbsp;<span style="color: green">{{ tablename }}</span></label>
                <input type="submit" value="搜索" class="btn btn-success" style="float: right;margin-bottom: 10px;"/>
            </form>

            <table class="table table-striped table-bordered">
                <thead>
                <tr>
                    <th style="width:100px;">A</th>
                    <th style="width:100px;">B</th>
                    <th>sentence</th>
                    <th>操作</th>
                    <th>跳过</th>

                </tr>
                </thead>
                <tbody>
                {% for word in words_list %}
                    <tr>
                        <td>{{ word.A }}</td>
                        <td>{{ word.B }}</td>
                        <td>{{ word.sentence }}</td>
                        <td>
                            <table class="kl">
                                <tr>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/可比公司"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl ">可比公司</a>
                                    </td>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/非可比公司"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">非可比公司</a></td>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/上游"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">上游</a></td>
                                </tr>
                                <tr>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/下游"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">下游</a></td>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/主行业"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">主行业</a></td>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/子行业"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">子行业</a></td>
                                </tr>
                                <tr>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/影响"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">影响</a></td>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/被影响"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">被影响</a></td>
                                    <td><a href="/word/{{ word.A }}__{{ word.B }}__{{ tablename }}/relations/公司"
                                           class="layui-btn layui-btn-sm layui-btn-normal kl">公司</a></td>
                                </tr>
                            </table>
                        <td><a href="/word/{{ tablename }}/continue"
                               class="layui-btn layui-btn-sm layui-btn-danger ">跳过</a></td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        </div>
    </div>
</div>
</body>
</html>